package com.xingkeduo.dto.transter.hairstyle;

import com.xingkeduo.dto.param.HairStyleParameterDto;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 *
 * @author chi  2019-02-14 16:58
 **/
@Data
public class OrderHairDto {

    @NotBlank(message = "订单号不能为空")
    private String id;

    @NotBlank(message = "发型ID不能为空")
    private String hairId;

    public void covert(HairStyleParameterDto hairStyleParameterDto) {
        this.id=hairStyleParameterDto.getOrder_no();
        this.hairId=hairStyleParameterDto.getHairstyle_id();
    }
}
